package com.spring.connection;

/**
 * JavaBean普通属性值的装配,数据库连接类
 * @ClassName: ConnectionPool
 **/
public class ConnectionPool {

    private String className;
    private String url;
    private String username;
    private String password;
    private String initSize;
    private String maxSize;

    public ConnectionPool() {

    }

    public ConnectionPool(String className, String url, String username, String password, String initSize, String maxSize) {
        this.className = className;
        this.url = url;
        this.username = username;
        this.password = password;
        this.initSize = initSize;
        this.maxSize = maxSize;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getInitSize() {
        return initSize;
    }

    public void setInitSize(String initSize) {
        this.initSize = initSize;
    }

    public String getMaxSize() {
        return maxSize;
    }

    public void setMaxSize(String maxSize) {
        this.maxSize = maxSize;
    }

    @Override
    public String toString() {
        return "ConnectionPool{" +
                "className='" + className + '\'' +
                ", url='" + url + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", initSize='" + initSize + '\'' +
                ", maxSize='" + maxSize + '\'' +
                '}';
    }
}
